-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unadvertised SHAs don't work for github/bitbucket #675
base: main
Are you sure you want to change the base?
Conversation
Killing this PR - but may be good to have a warning if "like" a short SHA? |
This still does have an issue as the Line 202 in eb15a1e
archive and this is an issue for bitbucket and github as well.
|
@muschellij2 I am sorry, I forgot, is this still an issue, or using the full sha solves your problems? |
I believe it does, but do you think this solution would save some users who
put a short SHA? Or maybe put a short SHA check with GH or bitbucket?
On Wed, Feb 2, 2022 at 3:27 AM Gábor Csárdi ***@***.***> wrote:
@muschellij2 <https://github.com/muschellij2> I am sorry, I forgot, is
this still an issue, or using the full sha solves your problems?
—
Reply to this email directly, view it on GitHub
<#675 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIGPLXBO3MN2KIO5M53MFLUZDTIZANCNFSM5JIEOZJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Best,
John
|
You are right that a full clone would save some users, but it would also cause pain to other users, when installing from large repos. Popular packages often have large repos, e.g. ggplot2, etc. I think if the short sha is not found, then we could include a tip in the error message, suggesting a full sha. |
Fixes #674. I know it's heavy handed in the sense that github/bitbucket git repos are going full depth, but otherwise you can't use SSH with
install_git
to specific SHAs.The use case is using SSH keys (as opposed to GITHUB_PAT for a number of reasons) and you want to install specific references of packages for a reproducible environment.
git fetch origin SHA
won't work for these.